import store from '../store'
const whiteList = ['/login', '/404',] // no redirect whitelist

export default function (to, from, next) {
	// 控制权限跳转
	if(whiteList.includes(to.path)){
		next();
	}else{
		let token = localStorage.getItem('oneoneone');
		if(token !== '111'){
			next('/login');
		}else{
			next();
		}
	}
	
}